* Replication command file for. 
* Leeds, Brett Ashley and David R. Davis.  
* "Beneath the Surface: Regime Type and International Interaction, 1953-78".
* Journal of Peace Research.
* uses data file jpr98rep.por.

* variables in the equations.
* DEPENDENT VARIABLES.
* anetsen - net interactions sent.
* acopsen - cooperation sent.
* aconsen - conflict sent.
* INDEPENDENT/CONTROL VARIABLES.
* anetrec - net interactions received.
* acoprec - cooperation received.
* aconrec - conflict received.
* regimea, regimet - regime type of actor, target (democ-autoc).
* jdd, jdd5, jdd7 - Joint Democracy Dummy variable cutoff at 6, 5, 7 and above.
* JWD - Joint Wealth Dummy.
* ally - Joint Alliance Dummy.
* lcns, lcps, lns - lag of conflict, cooperation and net interactions sent.
* dependa, dependt - trade dependence of actor, target.

* results reported in Table 1.
reg var = anetsen anetrec regimea regimet jdd jwd
 /dep=anetsen/method=enter.
reg var = acopsen acoprec regimea regimet jdd jwd
 /dep=acopsen/method=enter.
reg var = aconsen aconrec regimea regimet jdd jwd
 /dep=aconsen/method=enter.

*footnote 7.
* joint democracy dummy 5 or higher.
reg var = anetsen anetrec regimea regimet jdd5 jwd
 /dep=anetsen/method=enter.
reg var = acopsen acoprec regimea regimet jdd5 jwd
 /dep=acopsen/method=enter.
reg var = aconsen aconrec regimea regimet jdd5 jwd
 /dep=aconsen/method=enter.
* joint democracy dummy 7 or higher.
reg var = anetsen anetrec regimea regimet jdd7 jwd
 /dep=anetsen/method=enter.
reg var = acopsen acoprec regimea regimet jdd7 jwd
 /dep=acopsen/method=enter.
reg var = aconsen aconrec regimea regimet jdd7 jwd
 /dep=aconsen/method=enter.

*footnote 10.
* percentage of cases with interactions.
compute noact = 0.
if (aconsen=0) and (acopsen=0) noact = 1.
freq var = noact.

* footnote 11.
* inclusion of lagged dependent variables.
reg var = anetsen lns anetrec regimea regimet jdd jwd
 /dep=anetsen/method=enter.
reg var = acopsen lcps acoprec regimea regimet jdd jwd
 /dep=acopsen/method=enter.
reg var = aconsen lcns aconrec regimea regimet jdd jwd
 /dep=aconsen/method=enter.
*stata analysis available from authors upon request.
*email aleeds@garnet.acns.fsu.edu or poldd@emory.edu.

* footnote 12.
* replicate with trade dependence of actor and target.
reg var = anetsen anetrec regimea regimet jdd jwd dependa dependt
 /dep=anetsen/method=enter.
reg var = acopsen acoprec regimea regimet jdd jwd dependa dependt
 /dep=acopsen/method=enter.
reg var = aconsen aconrec regimea regimet jdd jwd dependa dependt
 /dep=aconsen/method=enter.
* replicate with joint alliance dummy variable.
reg var = anetsen anetrec regimea regimet jdd jwd ally
 /dep=anetsen/method=enter.
reg var = acopsen acoprec regimea regimet jdd jwd ally
 /dep=acopsen/method=enter.
reg var = aconsen aconrec regimea regimet jdd jwd ally
 /dep=aconsen/method=enter.
